import std.stdio: writefln;
import Perceptron;
import Digits;

void main(){
	writefln("foo");
	Perceptron perceptrons[10];
	foreach(inout p; perceptrons)
		p = new Perceptron(30);
	foreach(i, inout p; perceptrons){
		int test = 0;
			p.train(i, 100000);
			test = p.test(cyfry[i]);
//		for(int ii = 0; ii < 10; ii++)
//			writefln(ii,": ",p.detect(cyfry[ii]) );
		writefln(i,": ",test);
	}
}
